package com.hg.chapter8.jpa.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import javax.persistence.EntityManagerFactory;

@Configuration
//扫描Repository
@EnableJpaRepositories("com.hg.chapter8.jpa.repository")
//配置DataSource platformTransactionManager
public class JPAConfig {

    @Bean
    public EntityManagerFactory entityManagerFactory(){
        return null;
    }
}
